
import 'dart:async';
import '../utils/ApiService.dart';
import 'definitions/ResultModel.dart';


class CommonController {

    static String uploadFileUsingPostPath = "/api/common/upload";
    /// 1. 文件上传
    static Future<ResultModel> uploadFileUsingPost([ dynamic headers ]) async {
      var response = await ApiService.post("/api/common/upload", null, headers);
      return ResultModel()..fromJson(response.data);
    }
    
}